<?php

class UserTypes extends CActiveRecord
{
	/**
	 * Returns the static model of the specified AR class.
	 * @return Organizations the static model class
	 */
	public static function model($className=__CLASS__)
	{
		return parent::model($className);
	}

	/**
	 * @return string the associated database table name
	 */
	public function tableName()
	{
		return 'user_types';
	}
	
	public function rules()
	{
		return array(
			array('user_type_ID, user_type_description', 'required'),
		);
	}
	public function relations()
	{
		return array(
			'usertype' => array(self::HAS_MANY, 'Users', 'user_type_ID'),
		);
	}
}
?>